]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid/iconGridLayout: Simplify _findBestIconSize()
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 1 Dec 2020 20:58:09 +0000 (17:58 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 2 Dec 2020 22:43:04 +0000 (22:43 +0000)
commitb120b17d01f91c9672f81585ca95fcdd6d4c47ea
treeb00937c1a5b7448e4235ed97df83cce797c1f2e4
parent7d4ac04a78358f512e5723841e1f06a752129672
iconGrid/iconGridLayout: Simplify _findBestIconSize()

The 'bestSize' variable isn't necessary anymore, remove it in favor of
simply returning the 'size' or, if no suitable size found, IconSize.TINY.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1518>
js/ui/iconGrid.js